<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js"></script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css" />
    <script src="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js"></script>
    <meta charset="UTF-8">
<meta name="viewport"
      content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">

    <meta name="author" content="Horace">




    <meta name="keywords" content="zhaohaihao,赵海豪,海豪,Horace,Horace's Blog,海豪的博客,Java,后端">



    <title>归档: 2020/2 | Horace&#39;s Blog</title>
    



    <link rel="icon" href="/favicon.ico">




    <!-- stylesheets list from _config.yml -->
    
    <link rel="stylesheet" href="/css/style.css">
    



    <!-- scripts list from _config.yml -->
    
    <script src="/js/script.js"></script>
    
    <script src="/js/tocbot.min.js"></script>
    
    <script src="/js/custom.js"></script>
    



    
    
        
    


    <script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<meta name="generator" content="Hexo 4.2.0"><link rel="alternate" href="/atom.xml" title="Horace" type="application/atom+xml">
</head>
<body>
	<script type="text/javascript" src="/js/canvas-colorful-nest.js"></script>
    <div class="wrapper">
        <header>
    
        <nav class="navbar">
            <div class="container">
                <div class="navbar-header header-logo"><a href="/">Horace&#39;s Blog</a></div>
                <div class="menu navbar-right">
                    
                        <a class="menu-item" href="/archives">归档</a>
                    
                        <a class="menu-item" href="/categories">分类</a>
                    
                        <a class="menu-item" href="/tags">标签</a>
                    
                        <a class="menu-item" href="/links">友链</a>
                    
                        <a class="menu-item" href="/about">关于</a>
                    
                    <input id="switch_default" type="checkbox" class="switch_default">
                    <label for="switch_default" class="toggleBtn"></label>
                </div>
            </div>
        </nav>

        
        <nav class="navbar-mobile" id="nav-mobile">
            <div class="container">
                <div class="navbar-header">
                    <div>
                        <a href="/">Horace&#39;s Blog</a>
                    </div>
                    <div style="display: inherit;">
                        <div><a id="mobile-toggle-theme">Light</a></div>
                        <div class="menu-toggle" onclick="mobileBtn()" style="padding-left: 15px;">&#9776;菜单</div>
                    </div>
                    
                </div>
                <div class="menu" id="mobile-menu">
                    
                        <a class="menu-item" href="/archives">归档</a>
                    
                        <a class="menu-item" href="/categories">分类</a>
                    
                        <a class="menu-item" href="/tags">标签</a>
                    
                        <a class="menu-item" href="/links">友链</a>
                    
                        <a class="menu-item" href="/about">关于</a>
                    
                </div>
            </div>
        </nav>
    
</header>
<script>
    var mobileBtn = function f() {
        var toggleMenu = document.getElementsByClassName("menu-toggle")[0];
        var mobileMenu = document.getElementById("mobile-menu");
        if(toggleMenu.classList.contains("active")){
           toggleMenu.classList.remove("active")
           mobileMenu.classList.remove("active")
        }else{
           toggleMenu.classList.add("active")
           mobileMenu.classList.add("active")
        }
    }
</script>
        <div class="main">
            <div class="post-wrap archive">
    
    
    
        

        
            <h2>2020</h2>
        

        <article class="archive-item" style="margin: 5px 0;">
            <span class="archive-item-date">02-28</span>
            <span class="archive-item-title"><a href="/posts/2020022802.html">设计模式之行为型-策略模式 (Strategy)</a></span>
            <!--<span class="archive-item-date">02-28</span>-->
        </article>
    
        

        

        <article class="archive-item" style="margin: 5px 0;">
            <span class="archive-item-date">02-28</span>
            <span class="archive-item-title"><a href="/posts/2020022801.html">设计模式之行为型-迭代器模式 (Iterator)</a></span>
            <!--<span class="archive-item-date">02-28</span>-->
        </article>
    
        

        

        <article class="archive-item" style="margin: 5px 0;">
            <span class="archive-item-date">02-27</span>
            <span class="archive-item-title"><a href="/posts/2020022701.html">设计模式之行为型-模板方法模式 (Template Method)</a></span>
            <!--<span class="archive-item-date">02-27</span>-->
        </article>
    
        

        

        <article class="archive-item" style="margin: 5px 0;">
            <span class="archive-item-date">02-26</span>
            <span class="archive-item-title"><a href="/posts/2020022602.html">设计模式之结构型-代理模式 (Proxy)</a></span>
            <!--<span class="archive-item-date">02-26</span>-->
        </article>
    
        

        

        <article class="archive-item" style="margin: 5px 0;">
            <span class="archive-item-date">02-26</span>
            <span class="archive-item-title"><a href="/posts/2020022601.html">设计模式之结构型-桥接模式 (Bridge)</a></span>
            <!--<span class="archive-item-date">02-26</span>-->
        </article>
    
        

        

        <article class="archive-item" style="margin: 5px 0;">
            <span class="archive-item-date">02-22</span>
            <span class="archive-item-title"><a href="/posts/2020022201.html">设计模式之结构型-组合模式 (Composite)</a></span>
            <!--<span class="archive-item-date">02-22</span>-->
        </article>
    
        

        

        <article class="archive-item" style="margin: 5px 0;">
            <span class="archive-item-date">02-16</span>
            <span class="archive-item-title"><a href="/posts/2020021601.html">设计模式之结构型-享元模式 (Flyweight)</a></span>
            <!--<span class="archive-item-date">02-16</span>-->
        </article>
    
        

        

        <article class="archive-item" style="margin: 5px 0;">
            <span class="archive-item-date">02-14</span>
            <span class="archive-item-title"><a href="/posts/2020021402.html">设计模式之结构型-适配器模式 (Adapter)</a></span>
            <!--<span class="archive-item-date">02-14</span>-->
        </article>
    
        

        

        <article class="archive-item" style="margin: 5px 0;">
            <span class="archive-item-date">02-14</span>
            <span class="archive-item-title"><a href="/posts/2020021401.html">设计模式之结构型-装饰器模式 (Decorator)</a></span>
            <!--<span class="archive-item-date">02-14</span>-->
        </article>
    
        

        

        <article class="archive-item" style="margin: 5px 0;">
            <span class="archive-item-date">02-13</span>
            <span class="archive-item-title"><a href="/posts/2020021302.html">设计模式之结构型-外观模式 (Facade)</a></span>
            <!--<span class="archive-item-date">02-13</span>-->
        </article>
    
    
    <nav class="pagination">
        <span class="page-number current">1</span><a class="page-number" href="/archives/2020/02/page/2/">2</a><a class="page-number" href="/archives/2020/02/page/3/">3</a>
    </nav>

</div>
        </div>
        
	<footer id="footer" class="footer" style="line-height: unset;">
	    <div class="copyright" style="text-align: center;">
	        本站已安全运行 <span id="htmer_time">0年293天1时59分51秒</span></br>
            <span id="busuanzi_container_site_pv">总访问量 <span id="busuanzi_value_site_pv"></span> 次</span>
            |
            <span id="busuanzi_container_site_uv">总访客数 <span id="busuanzi_value_site_uv"></span> 人</span>
            |
            总字数 42.7k 字  <a href="https://zhaohaihao.com/atom.xml" target="_blank"><i class="iconfont icon-RSS"></i></a> </br>
	        <span>© 2019-2020 Horace&#39;s Blog.</span> <a href="http://beian.miit.gov.cn/" target="_blank" rel="nofollow">浙ICP备18055264号</a>
	    </div>
	</footer>

    <style>
        .icon-RSS {
            color: #FD9B00;
        }
    </style>

	<script language="javascript">
    function siteTime(){
        window.setTimeout("siteTime()", 1000);
        var seconds = 1000;
        var minutes = seconds * 60;
        var hours = minutes * 60;
        var days = hours * 24;
        var years = days * 365;
        var today = new Date();
        var todayYear = today.getFullYear();
        var todayMonth = today.getMonth()+1;
        var todayDate = today.getDate();
        var todayHour = today.getHours();
        var todayMinute = today.getMinutes();
        var todaySecond = today.getSeconds();
        /* Date.UTC() -- 返回date对象距世界标准时间(UTC)1970年1月1日午夜之间的毫秒数(时间戳)
        year - 作为date对象的年份，为4位年份值
        month - 0-11之间的整数，做为date对象的月份
        day - 1-31之间的整数，做为date对象的天数
        hours - 0(午夜24点)-23之间的整数，做为date对象的小时数
        minutes - 0-59之间的整数，做为date对象的分钟数
        seconds - 0-59之间的整数，做为date对象的秒数
        microseconds - 0-999之间的整数，做为date对象的毫秒数 */
        var t1 = Date.UTC(2019,6,12,22,22,22); //北京时间2016-12-1 00:00:00
        var t2 = Date.UTC(todayYear,todayMonth,todayDate,todayHour,todayMinute,todaySecond);
        var diff = t2-t1;
        var diffYears = Math.floor(diff/years);
        var diffDays = Math.floor((diff/days)-diffYears*365);
        var diffHours = Math.floor((diff-(diffYears*365+diffDays)*days)/hours);
        var diffMinutes = Math.floor((diff-(diffYears*365+diffDays)*days-diffHours*hours)/minutes);
        var diffSeconds = Math.floor((diff-(diffYears*365+diffDays)*days-diffHours*hours-diffMinutes*minutes)/seconds);
        document.getElementById("htmer_time").innerHTML=diffYears+"年"+diffDays+"天"+diffHours+"时"+diffMinutes+"分"+diffSeconds+"秒";
    }
    siteTime();
</script>

    </div>
</body>
</html>
